﻿namespace DotNetUtility.Common.Test
{
    using NUnit.Framework;

    [TestFixture]
    public class LogicalOperationTest
    {
        [Test]
        public void DoSequenceOfAnd()
        {
            bool expectedAndResult = true;
            Assert.AreEqual(expectedAndResult, LogicalOperation.DoSequenceOfAnd(true, false, false, true));
        }

        [Test]
        public void DoSequenceOfOr()
        {
            bool expectedOredResult = true;
            Assert.AreEqual(expectedOredResult, LogicalOperation.DoSequenceOfOr(true,true, false, false, false));
        }

        [Test]
        public void DoSequenceOfXOr()
        {
            bool expectedXoredResult = true;
            Assert.AreEqual(expectedXoredResult, LogicalOperation.DoSequenceOfXOr(true, false, false, true));
        }
    }
}
